from threading import Thread
import time

a = Thread(target=f1)

a.start()
time.sleep(2)
a.